<template>
	<view class="sendBox">
		<image src='../../static/icon/wait@2x.png'></image>
		<view class="flex-col tips">
			<view class="status">{{content}}<text class="default">{{detail}}</text></view>
			<view>{{tips}}</view>
		</view>
		<view class="btn" @click="back">返回首页</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				type:"",
				content:"",
				detail:"",
				tips:'请等待管理员审核'
			}
		},
		onLoad(e){
			this.type = e.type;
			if(this.type=='zl'){
				this.content = '专利发布成功'
			}else if(this.type == '1'){
				uni.setNavigationBarTitle({
					title:'成果价值评估需求'
				})
				this.content = '"成果价值评估需求"'
				this.detail = '需求提交成功'
				this.tips = '我们会尽快安排工作人员审核或与您联系！'
			}else if(this.type == '2'){
				uni.setNavigationBarTitle({
					title:'寻求销售渠道合作'
				})
				this.content = '"寻求销售渠道合作"'
				this.detail = '需求提交成功'
				this.tips = '我们会尽快安排工作人员审核或与您联系！'
			}else if(this.type == '3'){
				uni.setNavigationBarTitle({
					title:'寻求转化生产合作'
				})
				this.content = '"寻求转化生产合作"'
				this.detail = '需求提交成功'
				this.tips = '我们会尽快安排工作人员审核或与您联系！'
			}else if(this.type == '4'){
				uni.setNavigationBarTitle({
					title:'寻求法律维权服务'
				})
				this.content = '"寻求法律维权服务"'
				this.detail = '需求提交成功'
				this.tips = '我们会尽快安排工作人员审核或与您联系！'
			}
		},
		methods:{
			back(){
				console.log(1)
				uni.switchTab({
						url:'../home/home'
				})
				
				
			}
		}
	}
</script>

<style scoped lang="scss">
	.sendBox{
		text-align: center;
		.btn{
			width: 142upx;
			height: 64upx;
			border: 1px solid #FD580A;
			opacity: 0.5;
			border-radius: 8upx;
			display: flex;
			justify-content: center;
			align-items: center;
			
			font-size: 28upx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #FD580A;
			margin: 128upx auto;
		}
		image{
			width: 190upx;
			height: 242upx;
			margin-top: 80upx;
		}
		.tips{
			text-align: center;
			margin-top: 129upx;
			>view{
				padding-bottom: 30upx;
				font-size: 26upx;
				&.status{
					color: #FD580A;
					font-size: 26upx;
					.default{
						color: #000;
					}
				}
			}
		}
	}
</style>
